package com.workManager.mapper;

import com.workManager.pojo.TbCostEstimate;
import com.workManager.pojo.TbCostEstimateExample;
import com.workManager.vo.CostEstimateVo;
import com.workManager.vo.CostVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TbCostEstimateMapper {
    int countByExample(TbCostEstimateExample example);

    int deleteByExample(TbCostEstimateExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbCostEstimate record);

    int insertSelective(TbCostEstimate record);

    List<TbCostEstimate> selectByExample(TbCostEstimateExample example);

    TbCostEstimate selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbCostEstimate record, @Param("example") TbCostEstimateExample example);

    int updateByExample(@Param("record") TbCostEstimate record, @Param("example") TbCostEstimateExample example);

    int updateByPrimaryKeySelective(TbCostEstimate record);

    int updateByPrimaryKey(TbCostEstimate record);

    List<CostEstimateVo> query(Map map);

    int add(TbCostEstimate record);

    int invalid(Map map);

    List<CostVo> queryCost(Map<String, Object> map);

    List<Map<String, Object>> queryByMonth(Map<String, Object> map);

    List<Map<String,Object>> orgList();

    int approval(Map map);

    List<CostEstimateVo> queryGather(Map map);

    int approvalByOrg(Map map);
}